package com.pactera.madp.cp.mapper.channel;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pactera.madp.cp.api.entity.channel.ChannelCodeContactStatisticsEntity;
import com.pactera.madp.cp.api.model.channel.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ChannelCodeContactStatisticsMapper
 *
 * @author jun
 * @version 1.0
 * 2021/8/4 15:01
 **/
public interface ChannelCodeContactStatisticsMapper extends BaseMapper<ChannelCodeContactStatisticsEntity> {

    List<ChannelCodeAllAddContactData> getAllAddContact(@Param("corpId")Integer corpId);

    List<ChannelCodeAllContactData> getAllContact(@Param("corpId")Integer corpId);

    List<ChannelCodeAllLossContactData> getAllLossContact(@Param("corpId")Integer corpId);

    List<ChannelCodeNewAddContactData> getNewAddContact(@Param("corpId") Integer corpId, @Param("startTime") String startTime,@Param("endTime") String endTime);

    List<ChannelCodeNewLossContactData> getNewLossContact(@Param("corpId")Integer corpId,@Param("startTime") String startTime,@Param("endTime") String endTime);

}
